{template "header.html"}

<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="portlet bordered light myfbody">
        <div class="portlet-title tabbable-line">
            <ul class="nav nav-tabs" style="float:left;">
                <li class="{if $page==0}active{/if}">
                    <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('插件设置')} </a>
                </li>
            </ul>
        </div>
        <div class="portlet-body">
            <div class="tab-content">
                <div class="tab-pane {if $page==0}active{/if}" id="tab_0">
                     <div class="form-body">

                        <div class="form-group">
                            <label class="col-md-2 control-label">语言</label>
                            <div class="col-md-9">

                                <label>  
                                    <select class="form-control bs-select" data-live-search="true" data-actions-box="true" id="dr_lang" name="data[lang]" onchange="show_field_option(this.value)" tabindex="-98">
                                        <option value="zh-cn" {if 'zh-cn' == $info['data']['lang']}selected{/if}> 简体中文 </option>
                                        <option value="zh-tw" {if 'zh-tw' == $info['data']['lang']}selected{/if}> 繁体中文 </option>
                                        <option value="en" {if 'en' == $info['data']['lang']}selected{/if}> 英文 </option>
                                    </select>
                                </label>

                            </div>
                        </div>
                         
                        <script type="text/javascript">
                            jQuery(document).ready(function() {
                                var myTextArea = document.getElementById('file_code_ueditor');
                                var myCodeMirror = CodeMirror.fromTextArea(myTextArea, {
                                    lineNumbers: true,
                                    matchBrackets: true,
                                    styleActiveLine: true,
                                    theme: "neat",
                                    mode: 'javascript',
                                    lint: true,
                                    readOnly: true,
                                    autoRefresh: true
                                });
                                myCodeMirror.setSize(null, 500);
                            });
                        </script>

                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn blue"> 
                <i class="fa fa-save"></i> 保存内容
            </button>

            {if $reply_url}
                <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}')" class="btn yellow">
                    <i class="fa fa-mail-reply-all"></i> 保存并返回
                </button>
            {/if}
        </div>
    </div>
</form>

{template "footer.html"}